import { Controller, Get, Param, Query } from '@nestjs/common';
import { AppService } from '@service/app.service';
import config from '@config/constants';

@Controller('')
export class AppController {
  constructor(private readonly appService: AppService) {}
  @Get('*')
  async getAll(@Param() params: any, @Query() query: any): Promise<void> {
    return this.appService.getData('GET', `/${params['0']}`);
  }
}
